<?php echo $this->fetch('member.header.html'); ?>
<div class="content">
    <?php echo $this->fetch('member.menu.html'); ?>
    <div id="right">
        <?php echo $this->fetch('member.curlocal.html'); ?>
        <?php echo $this->fetch('member.submenu.html'); ?>
        <div class="wrap">
            <div class="public">
                <div class="public_select table">
                    <table>
                        <tbody>
                            <tr class="gray">
                                <th width="10%">用户</th>
                                <th>聊天类型</th>
                                <th width="10">发送时间</th>
                                <th width="10%"><span>操作<?php echo $this->_var['my_id']; ?></span></th>
                            </tr>
                            <?php $_from = $this->_var['chat_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'chat');if (count($_from)):
    foreach ($_from AS $this->_var['chat']):
?>
                            <tr class="line">
                                
                                <td class="align2"><a href="<?php echo url('app=my_chatlog&act=chatlog&receiverid=' . $this->_var['chat']['receiverid']. ''); ?>" target="_blank"><img src="<?php echo $this->_var['chat']['contact_portrait']; ?>" width="50"/><br/><?php echo htmlspecialchars($this->_var['chat']['contact_name']); ?></a></td>
                                <!--<td class="align2"><a href="<?php echo url('app=my_chatlog&act=chatlog&receiverid=' . $this->_var['chat']['contact_id']. ''); ?>" target="_blank"><img src="<?php echo $this->_var['chat']['contact_portrait']; ?>" width="50"/><br/><?php echo htmlspecialchars($this->_var['chat']['contact_name']); ?></a></td>-->
                                
                                <td class="align2"><?php echo htmlspecialchars($this->_var['chat']['sendcontent']); ?></td>
                                <td class="align2"><?php echo local_date("Y-m-d H:i:s",$this->_var['chat']['sendtime']); ?></td>
                                <td class="align2">
                                    
                                    <?php if ($this->_var['chat']['receiverid'] == $this->_var['my_id']): ?>
                                    <a href="<?php echo url('app=my_chatlog&act=reply&otherid=' . $this->_var['chat']['senderid']. ''); ?>" >回复</a>
                                    <?php else: ?>
                                    <a href="<?php echo url('app=my_chatlog&act=reply&otherid=' . $this->_var['chat']['receiverid']. ''); ?>" >回复</a>
                                    <?php endif; ?>
                                    
                                    <a href="javascript:drop_confirm('您确定要删除它吗？', '<?php echo url('app=my_chatlog&act=drop&receiverid=' . $this->_var['chat']['contact_id']. ''); ?>');" >删除</a>
                                </td>
                            </tr>
                            <?php endforeach; else: ?>
                            <tr class="no_data">
                                <td colspan="5" class="align2">no_data</td>
                            </tr>
                            <?php endif; unset($_from); ?><?php $this->pop_vars();; ?>
                        </tbody>
                    </table>
                </div>
                <?php echo $this->fetch('member.page.bottom.html'); ?>
                <div class="clear"></div>
            </div>
        </div>
        <div class="clear"></div>
    </div>
    <div class="clear"></div>
</div>
<?php echo $this->fetch('footer.html'); ?>